import trainingRequest from "@/utils/trainingRoom/trainingRequest";

//获取历史页
const historyUrl = '/moment/viewRecords?access_token=c1620b5f-db33-4cd7-9ced-8b76c2278931&pageSize=10'
export const getHistoryPage = () => {
    return trainingRequest.get(historyUrl)
}

//删除历史
//https://www.dance365.com/apis/moment/viewRecords?access_token=c1620b5f-db33-4cd7-9ced-8b76c2278931&pageSize=10&pageNum=0
const delHistoryUrl = '/moment/viewRecords?access_token=c1620b5f-db33-4cd7-9ced-8b76c2278931&pageSize=10&pageNum=0'
export const delHistoryList = () => {
    return trainingRequest.get(delHistoryUrl)
}

//获取练习室页
//https://www.dance365.com/apis/trainingCenter/plans/search/findByUserId?access_token=c1620b5f-db33-4cd7-9ced-8b76c2278931&pageSize=20&pageNum=0&type=system
const trainingUrl = "/trainingCenter/plans/search/findByUserId?access_token=c1620b5f-db33-4cd7-9ced-8b76c2278931&pageSize=20&pageNum=0&type=system"
export const getTrainingPage = () => {
    return trainingRequest.get(trainingUrl)
}

//获取收藏页
//https://www.dance365.com/apis/moment/favoriteRecords/search/findByUserId?access_token=c1620b5f-db33-4cd7-9ced-8b76c2278931&pageSize=10&subject=activity
const collectionsUrl = "/moment/favoriteRecords/search/findByUserId?access_token=c1620b5f-db33-4cd7-9ced-8b76c2278931&pageSize=10&subject=activity"
export const getCollectionsPage = () => {
    return trainingRequest.get(collectionsUrl)
}
